﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MusicStore.Models
{
	public class Artist
	{
		public int ArtistID { get; set; }

		[Required()]
		[StringLength(100, MinimumLength = 2)]
		public string Name { get; set; }

		//[Timestamp()]
		//public byte[] RowVersion { get; set; }

		[ConcurrencyCheck()]
		public int Version { get; set; }

		public virtual List<Album> Albums { get; set; }
		public virtual ArtistDetails ArtistDetails { get; set; }
		
	}
}
